package com.fqgj.xjd.user.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.fqgj.xjd.user.dao.UserBehaviorWifiDao;
import com.fqgj.xjd.user.entity.UserBehaviorWifiEntity;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* User: zhangxingyun
* Date: 2017-07-20
* Time: 18:38:53.067
*/

@Repository
public class UserBehaviorWifiDaoImpl extends AbstractBaseMapper<UserBehaviorWifiEntity> implements UserBehaviorWifiDao {

    @Override
    public UserBehaviorWifiEntity selectLatestUserWifiByUserCode(String userCode) {
        return getSqlSession().selectOne(getStatement("selectLatestUserWifiByUserCode"),userCode);
    }

    @Override
    public int batchAddWifi(List<UserBehaviorWifiEntity> userBehaviorWifiEntities) {
        return this.getSqlSession().insert(this.getStatement("batchAddWifi"), userBehaviorWifiEntities);
    }
}